package com.chatgpt.api.controller;

import com.chatgpt.api.conf.ChatPlusConfig;
import com.chatgpt.base.vo.BizVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yangjian
 */
@RestController
@Slf4j
public class HelloController extends BaseController {

  @Resource private ChatPlusConfig config;

  @GetMapping("/")
  public BizVo index() {
    log.info("Redis 配置：{}", config.getRedis());
    return BizVo.success().setMessage("Hello chatgpt-plus");
  }
}
